package com.htjx.mall.admin.controllers.converters;

import java.util.Date;

import org.springframework.core.convert.converter.Converter;

import com.htjx.mall.commons.utils.Dates;


public class DateToStringConverter implements Converter<Date, String> {

	@Override
	public String convert(Date source) {
		if (source == null) {
			return null;
		} else {
			return Dates.toTime(source);
		}
	}

}
